package com.company.person;

import com.company.transport.*;

public class Person {
    private String name;

    public void getAround(AirTransport airTransport) { airTransport.behaviorUse();}

    public void getAround(Aircraft aircraft){aircraft.behaviorUse();}

    public void getAround(Airship airship){airship.behaviorUse();}

    public void getAround(HotAirBalloon hotAirBalloon){hotAirBalloon.behaviorUse();}

    public void getAround(LandTransport landTransport) { landTransport.behaviorUse();}

    public void getAround(Train train){train.behaviorUse();}

    public void getAround(Car car){car.behaviorUse();}

    public void getAround(Bicycle bicycle){bicycle.behaviorUse();}

    public void getAround(Motorcycle motorcycle){motorcycle.behaviorUse();}

    public void getAround(MaritimeMeansOfTransport maritimeMeansOfTransport) { maritimeMeansOfTransport.behaviorUse();}

    public void getAround(Ship ship){ship.behaviorUse();}

    public void getAround(Submarine submarine){submarine.behaviorUse();}

    public void getAround(Hovercraft hovercraft){hovercraft.behaviorUse();}



    public Person() {
    }

    public Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
